#include "stdafx.h"
#include "World.h"

BAA::World * BAA::World::pInstance = 0;

BAA::World * BAA::World::getInstance(){
	if( pInstance == NULL ){
		BAA::World::pInstance = new BAA::World("bob");
		return pInstance;
	}else{
		return pInstance;
	}
}

float BAA::World::DistanceBetween( Agent* a, Agent* b )
{
	// simple math for now.
	return MathHelper::distance( a->Properties()->GetTransform()->getPos(), b->Properties()->GetTransform()->getPos());
}

float BAA::World::DistanceBetween( Agent* a, Vector3* b )
{
	// simple math for now.
	return MathHelper::distance( a->Properties()->GetTransform()->getPos(), b);
}

void BAA::World::CreateAgentEvent( Agent * agent, Action* action )
{


}